//
//  TGTabItem.m
//  GroupBuy
//
//  Created by wwj on 15/11/2.
//  Copyright © 2015年 wwj. All rights reserved.
//

#import "TGTabItem.h"

@implementation TGTabItem

+(instancetype)tabItem{
    return [[self alloc] init];
}

- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        [self setBackgroundImage: [UIImage imageNamed:@"bg_tabbar_item"] forState:UIControlStateDisabled];
    }
    return self;
}

-(void)setEnabled:(BOOL)enabled{
    self.divider.hidden = !enabled;
    [super setEnabled:enabled];
}

@end
